{include file="common/head"/}
<div class="admin-main layui-anim layui-anim-upbit" ng-app="hd" ng-controller="ctrl">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>{$title}</legend>
    </fieldset>
    <form class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">订单编号</label>
            <div class="layui-input-4">
                <label class="layui-form-label">{$info.danhao}</label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-4">
                <label class="layui-form-label">{$info.mobile}</label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">购买产品</label>
            <div class="layui-input-4">
                <label class="layui-form-label">{$info.danhao}</label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">购买数量</label>
            <div class="layui-input-4">
                <label class="layui-form-label">{$info.danhao}</label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">消费金额</label>
            <div class="layui-input-4">
                <label class="layui-form-label">{$info.danhao}</label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">评价星级</label>
            <input type="hidden" id="xing" name="xing" value="{$lists.xing}">
            <div class="layui-input-4">
                <div><div id="test4"></div></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">评价内容</label>
            <div class="layui-input-4">
                <textarea style="height: 300px;width: 800px" readonly>
                        {$lists.content}
                </textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
                <a href="{:url('dingdanlist')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
            </div>
        </div>
    </form>
</div>
{include file="common/foot"/}
<script src="/static/common/js/angular.min.js"></script>
<script type="text/javascript" src="/static/mobile/js/jquery.js"></script>
<script src="/static/plugins/layui/layui.all.js"></script>
<script>
    layui.use(['rate'], function(){
        var xing= $("#xing").val();
        var rate = layui.rate;
        //半星效果
        /*		rate.render({
         elem: '#test3'
         ,value: 0 //初始值
         ,half: true //开启半星
         })*/
        rate.render({
            elem: '#test4'
            ,value: xing
            ,half: true
            ,text: true
            ,/*choose: function(value){
                $("#xing").val(value);
            }*/
        })
    });
</script>

</body>
</html>